package com.yekaile.carsystem.common;

public class Constant {
    private Constant() {
    }

    /**
     * redis-OK
     */
    public static final String OK = "OK";

    /**
     * redis过期时间，以秒为单位，一分钟
     */
    public static final int EXRP_MINUTE = 60;

    /**
     * redis过期时间，以秒为单位，一小时
     */
    public static final int EXRP_HOUR = 60 * 60;

    /**
     * redis过期时间，以秒为单位，一天
     */
    public static final int EXRP_DAY = 60 * 60 * 24;

    /**
     * redis-key-前缀-shiro:cache:
     */
    public static final String PREFIX_SHIRO_CACHE = "shiro:cache:";

    /**
     * redis-key-前缀-shiro:access_token:
     */
    public static final String PREFIX_SHIRO_ACCESS_TOKEN = "shiro:access_token:";

    /**
     * redis-key-前缀-shiro:refresh_token:
     */
    public static final String PREFIX_SHIRO_REFRESH_TOKEN = "shiro:refresh_token:";


    public static final String USERNAME = "username";
    public static final String USERID = "userId";
    public static final String LOGIN_TIME = "loginTime";
    public static final String LOCATION = "loginLocation";
    public static final String IP = "ip";
    public static final String LOGIN_BROWSER = "browser";
    public static final String LOGIN_OS = "os";

    public static final String CURRENT_TIME_MILLIS = "currentTimeMillis";


    public static final String AUTHORIZATION_HEADER = "Authorization";

    public static final String VISIT = "visit";

    public static final String LOGIN_LOG = "login_log:";
    public static final String LOGIN_METHOD = "login";


    public static final String SYSTEM_LOG = "system_log:";
    public static final String OP_TIME = "operatorTime";
    public static final String OP_METHOD = "operatorMethod";
    public static final String OP_ARGS = "operatorArgs";


}
